<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>妈妈生日快乐</title>
  <style>
    /* 基础重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: "Microsoft YaHei", sans-serif;
      background-color: #f9cad8; 
      overflow: hidden; /* 隐藏气泡溢出部分 */
      min-height: 100vh;
      padding-bottom: 60px; /* 为底部按钮留出空间 */
    }

    /* 背景气泡动画（核心：飘落效果） */
    .bg-bubbles {
      position: absolute;
      width: 100%;
      height: 100vh;
      top: 0;
      left: 0;
      z-index: 1;
    }
    .bubble {
      position: absolute;
      width: 10px;
      height: 10px;
      background: rgba(255, 255, 255, 0.6);
      border-radius: 50%;
      animation: float 8s infinite linear;
    }
    /* 不同气泡的随机参数 */
    .bubble:nth-child(1) {
      left: 10%; top: 20%; width: 12px; height: 12px; animation-delay: 0s;
    }
    .bubble:nth-child(2) {
      left: 30%; top: 15%; width: 8px; height: 8px; animation-delay: 2s;
    }
    .bubble:nth-child(3) {
      left: 80%; top: 30%; width: 15px; height: 15px; animation-delay: 1s;
    }
    .bubble:nth-child(4) {
      left: 50%; top: 40%; width: 9px; height: 9px; animation-delay: 3s;
    }
    .bubble:nth-child(5) {
      left: 20%; top: 70%; width: 11px; height: 11px; animation-delay: 4s;
    }
    @keyframes float {
      0% { transform: translateY(0) scale(1); opacity: 0.6; }
      50% { transform: translateY(-80vh) scale(1.2); opacity: 0.3; }
      100% { transform: translateY(-100vh) scale(0.8); opacity: 0; }
    }

    /* 主容器（居中+动画承载） */
    .container {
      position: relative;
      z-index: 2; /* 确保内容在气泡上层 */
      width: 80%;
      max-width: 1200px;
      margin: 60px auto;
      padding: 40px;
      background-color: #ffe6ed; 
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      opacity: 0; /* 初始隐藏，用于入场动画 */
      transform: translateY(30px);
      animation: fadeInUp 1s forwards;
    }
    @keyframes fadeInUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* 卡片通用样式 */
    .card {
      flex: 1;
      min-width: 300px;
      background-color: #fff;
      border-radius: 10px;
      padding: 24px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      opacity: 0; /* 卡片单独入场动画 */
      transform: translateY(20px);
      animation: cardFade 1s forwards;
    }
    .card.daily {
      border-top: 4px solid #ffb6c1; 
      animation-delay: 0.3s;
    }
    .card.poetry {
      border-top: 4px solid #add8e6; 
      animation-delay: 0.6s;
    }
    @keyframes cardFade {
      to { opacity: 1; transform: translateY(0); }
    }

    /* 卡片标题 */
    .card h2 {
      font-size: 20px;
      font-weight: 600;
      color: #333;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #eee; 
    }

    /* 列表项 */
    .card ul {
      list-style: none; 
    }
    .card li {
      font-size: 16px;
      color: #555;
      line-height: 1.8;
      margin-bottom: 10px;
    }
    .daily li::before {
      content: "♥ ";
      color: #ff7ca3; 
      margin-right: 6px;
    }
    .poetry li {
      color: #666;
    }

    /* 彩蛋按钮样式 */
    .easter-egg {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      padding: 12px 24px;
      background-color: #ff7ca3;
      color: white;
      border: none;
      border-radius: 30px;
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(255, 124, 163, 0.3);
      transition: all 0.3s ease;
      cursor: pointer;
      opacity: 0;
      animation: fadeIn 1s 1.5s forwards;
    }
    
    .easter-egg:hover {
      background-color: #ff5c8a;
      transform: translateX(-50%) scale(1.05);
      box-shadow: 0 6px 16px rgba(255, 124, 163, 0.4);
    }
    
    @keyframes fadeIn {
      to { opacity: 1; }
    }

    /* 响应式适配 */
    @media (max-width: 768px) {
      .container {
        width: 90%;
        flex-direction: column; 
        margin: 30px auto;
        padding: 20px;
      }
      .card {
        min-width: auto;
      }
      .easter-egg {
        padding: 10px 20px;
        font-size: 14px;
      }
    }
  </style>
</head>
<body>
  <!-- 背景气泡 -->
  <div class="bg-bubbles">
    <div class="bubble"></div>
    <div class="bubble"></div>
    <div class="bubble"></div>
    <div class="bubble"></div>
    <div class="bubble"></div>
  </div>

  <!-- 主内容容器 -->
  <div class="container">
    <div class="card daily">
      <h2>日常暖心话</h2>
      <ul>
        <li>妈妈生日快乐！愿您每天都轻松、开心，少些操劳～</li>
        <li>妈妈您健康平安，就是我最大的心愿。</li>
        <li>谢谢您一直做我最坚实的后盾</li>
        <li>但愿岁月对您永远温柔</li>
        <li>永远都有精力奔向自己喜欢的生活</li>
      </ul>
    </div>
    <div class="card poetry">
      <h2>诗意祝福</h2>
      <ul>
        <li>岁月染霜鬓，母爱暖半生。妈妈，生日快乐，愿您常安康。</li>
        <li>承您半生恩，念您岁岁温。祝妈妈生日快乐，喜乐常存。</li>
        <li>您用半生暖，护我岁岁安。妈妈生日到，愿您多笑颜。</li>
        <li>时光添华发，爱意未曾减。妈妈生日快乐，福寿皆如愿。</li>
      </ul>
    </div>
  </div>

  <!-- 彩蛋按钮 -->
  <a href="./EasterEgg.html" class="easter-egg">点击查看惊喜彩蛋</a>
</body>
</html>